package com.data.modules.online.cgreport.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

@TableName("onl_cgreport_item")
public class OnlCgreportItem implements Serializable {
    private static final long serialVersionUID = 1;
    private String cgrheadId;
    private String createBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String dictCode;
    private String fieldHref;
    private String fieldName;
    private String fieldTxt;
    private String fieldType;
    private Integer fieldWidth;
    private String groupTitle;
    @TableId(type = IdType.ASSIGN_ID)

    private String id;
    private Integer isOrder;
    private Integer isSearch;
    private Integer isShow;
    private String isTotal;
    private Integer orderNum;
    private String replaceVal;
    private String searchMode;
    private String updateBy;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    public boolean canEqual(Object other) {
        return other instanceof OnlCgreportItem;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlCgreportItem)) {
            return false;
        }
        OnlCgreportItem onlCgreportItem = (OnlCgreportItem) o;
        if (!onlCgreportItem.canEqual(this)) {
            return false;
        }
        Integer fieldWidth2 = getFieldWidth();
        Integer fieldWidth3 = onlCgreportItem.getFieldWidth();
        if (fieldWidth2 != null ? !fieldWidth2.equals(fieldWidth3) : fieldWidth3 != null) {
            return false;
        }
        Integer isOrder2 = getIsOrder();
        Integer isOrder3 = onlCgreportItem.getIsOrder();
        if (isOrder2 != null ? !isOrder2.equals(isOrder3) : isOrder3 != null) {
            return false;
        }
        Integer isSearch2 = getIsSearch();
        Integer isSearch3 = onlCgreportItem.getIsSearch();
        if (isSearch2 != null ? !isSearch2.equals(isSearch3) : isSearch3 != null) {
            return false;
        }
        Integer isShow2 = getIsShow();
        Integer isShow3 = onlCgreportItem.getIsShow();
        if (isShow2 != null ? !isShow2.equals(isShow3) : isShow3 != null) {
            return false;
        }
        Integer orderNum2 = getOrderNum();
        Integer orderNum3 = onlCgreportItem.getOrderNum();
        if (orderNum2 != null ? !orderNum2.equals(orderNum3) : orderNum3 != null) {
            return false;
        }
        String id = getId();
        String id2 = onlCgreportItem.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String cgrheadId2 = getCgrheadId();
        String cgrheadId3 = onlCgreportItem.getCgrheadId();
        if (cgrheadId2 != null ? !cgrheadId2.equals(cgrheadId3) : cgrheadId3 != null) {
            return false;
        }
        String fieldName2 = getFieldName();
        String fieldName3 = onlCgreportItem.getFieldName();
        if (fieldName2 != null ? !fieldName2.equals(fieldName3) : fieldName3 != null) {
            return false;
        }
        String fieldTxt2 = getFieldTxt();
        String fieldTxt3 = onlCgreportItem.getFieldTxt();
        if (fieldTxt2 != null ? !fieldTxt2.equals(fieldTxt3) : fieldTxt3 != null) {
            return false;
        }
        String fieldType2 = getFieldType();
        String fieldType3 = onlCgreportItem.getFieldType();
        if (fieldType2 != null ? !fieldType2.equals(fieldType3) : fieldType3 != null) {
            return false;
        }
        String searchMode2 = getSearchMode();
        String searchMode3 = onlCgreportItem.getSearchMode();
        if (searchMode2 != null ? !searchMode2.equals(searchMode3) : searchMode3 != null) {
            return false;
        }
        String dictCode2 = getDictCode();
        String dictCode3 = onlCgreportItem.getDictCode();
        if (dictCode2 != null ? !dictCode2.equals(dictCode3) : dictCode3 != null) {
            return false;
        }
        String fieldHref2 = getFieldHref();
        String fieldHref3 = onlCgreportItem.getFieldHref();
        if (fieldHref2 != null ? !fieldHref2.equals(fieldHref3) : fieldHref3 != null) {
            return false;
        }
        String replaceVal2 = getReplaceVal();
        String replaceVal3 = onlCgreportItem.getReplaceVal();
        if (replaceVal2 != null ? !replaceVal2.equals(replaceVal3) : replaceVal3 != null) {
            return false;
        }
        String isTotal2 = getIsTotal();
        String isTotal3 = onlCgreportItem.getIsTotal();
        if (isTotal2 != null ? !isTotal2.equals(isTotal3) : isTotal3 != null) {
            return false;
        }
        String createBy2 = getCreateBy();
        String createBy3 = onlCgreportItem.getCreateBy();
        if (createBy2 != null ? !createBy2.equals(createBy3) : createBy3 != null) {
            return false;
        }
        Date createTime2 = getCreateTime();
        Date createTime3 = onlCgreportItem.getCreateTime();
        if (createTime2 != null ? !createTime2.equals(createTime3) : createTime3 != null) {
            return false;
        }
        String updateBy2 = getUpdateBy();
        String updateBy3 = onlCgreportItem.getUpdateBy();
        if (updateBy2 != null ? !updateBy2.equals(updateBy3) : updateBy3 != null) {
            return false;
        }
        Date updateTime2 = getUpdateTime();
        Date updateTime3 = onlCgreportItem.getUpdateTime();
        if (updateTime2 != null ? !updateTime2.equals(updateTime3) : updateTime3 != null) {
            return false;
        }
        String groupTitle2 = getGroupTitle();
        String groupTitle3 = onlCgreportItem.getGroupTitle();
        if (groupTitle2 == null) {
            if (groupTitle3 == null) {
                return true;
            }
        } else if (groupTitle2.equals(groupTitle3)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        Integer fieldWidth2 = getFieldWidth();
        int hashCode = fieldWidth2 == null ? 43 : fieldWidth2.hashCode();
        Integer isOrder2 = getIsOrder();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = isOrder2 == null ? 43 : isOrder2.hashCode();
        Integer isSearch2 = getIsSearch();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = isSearch2 == null ? 43 : isSearch2.hashCode();
        Integer isShow2 = getIsShow();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = isShow2 == null ? 43 : isShow2.hashCode();
        Integer orderNum2 = getOrderNum();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = orderNum2 == null ? 43 : orderNum2.hashCode();
        String id = getId();
        int i6 = (hashCode5 + i5) * 59;
        int hashCode6 = id == null ? 43 : id.hashCode();
        String cgrheadId2 = getCgrheadId();
        int i7 = (hashCode6 + i6) * 59;
        int hashCode7 = cgrheadId2 == null ? 43 : cgrheadId2.hashCode();
        String fieldName2 = getFieldName();
        int i8 = (hashCode7 + i7) * 59;
        int hashCode8 = fieldName2 == null ? 43 : fieldName2.hashCode();
        String fieldTxt2 = getFieldTxt();
        int i9 = (hashCode8 + i8) * 59;
        int hashCode9 = fieldTxt2 == null ? 43 : fieldTxt2.hashCode();
        String fieldType2 = getFieldType();
        int i10 = (hashCode9 + i9) * 59;
        int hashCode10 = fieldType2 == null ? 43 : fieldType2.hashCode();
        String searchMode2 = getSearchMode();
        int i11 = (hashCode10 + i10) * 59;
        int hashCode11 = searchMode2 == null ? 43 : searchMode2.hashCode();
        String dictCode2 = getDictCode();
        int i12 = (hashCode11 + i11) * 59;
        int hashCode12 = dictCode2 == null ? 43 : dictCode2.hashCode();
        String fieldHref2 = getFieldHref();
        int i13 = (hashCode12 + i12) * 59;
        int hashCode13 = fieldHref2 == null ? 43 : fieldHref2.hashCode();
        String replaceVal2 = getReplaceVal();
        int i14 = (hashCode13 + i13) * 59;
        int hashCode14 = replaceVal2 == null ? 43 : replaceVal2.hashCode();
        String isTotal2 = getIsTotal();
        int i15 = (hashCode14 + i14) * 59;
        int hashCode15 = isTotal2 == null ? 43 : isTotal2.hashCode();
        String createBy2 = getCreateBy();
        int i16 = (hashCode15 + i15) * 59;
        int hashCode16 = createBy2 == null ? 43 : createBy2.hashCode();
        Date createTime2 = getCreateTime();
        int i17 = (hashCode16 + i16) * 59;
        int hashCode17 = createTime2 == null ? 43 : createTime2.hashCode();
        String updateBy2 = getUpdateBy();
        int i18 = (hashCode17 + i17) * 59;
        int hashCode18 = updateBy2 == null ? 43 : updateBy2.hashCode();
        Date updateTime2 = getUpdateTime();
        int i19 = (hashCode18 + i18) * 59;
        int hashCode19 = updateTime2 == null ? 43 : updateTime2.hashCode();
        String groupTitle2 = getGroupTitle();
        int i20 = (hashCode19 + i19) * 59;
        if (groupTitle2 != null) {
            i = groupTitle2.hashCode();
        }
        return i20 + i;
    }

    public void setCgrheadId(String cgrheadId2) {
        this.cgrheadId = cgrheadId2;
    }

    public void setCreateBy(String createBy2) {
        this.createBy = createBy2;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setCreateTime(Date createTime2) {
        this.createTime = createTime2;
    }

    public void setDictCode(String dictCode2) {
        this.dictCode = dictCode2;
    }

    public void setFieldHref(String fieldHref2) {
        this.fieldHref = fieldHref2;
    }

    public void setFieldName(String fieldName2) {
        this.fieldName = fieldName2;
    }

    public void setFieldTxt(String fieldTxt2) {
        this.fieldTxt = fieldTxt2;
    }

    public void setFieldType(String fieldType2) {
        this.fieldType = fieldType2;
    }

    public void setFieldWidth(Integer fieldWidth2) {
        this.fieldWidth = fieldWidth2;
    }

    public void setGroupTitle(String groupTitle2) {
        this.groupTitle = groupTitle2;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setIsOrder(Integer isOrder2) {
        this.isOrder = isOrder2;
    }

    public void setIsSearch(Integer isSearch2) {
        this.isSearch = isSearch2;
    }

    public void setIsShow(Integer isShow2) {
        this.isShow = isShow2;
    }

    public void setIsTotal(String isTotal2) {
        this.isTotal = isTotal2;
    }

    public void setOrderNum(Integer orderNum2) {
        this.orderNum = orderNum2;
    }

    public void setReplaceVal(String replaceVal2) {
        this.replaceVal = replaceVal2;
    }

    public void setSearchMode(String searchMode2) {
        this.searchMode = searchMode2;
    }

    public void setUpdateBy(String updateBy2) {
        this.updateBy = updateBy2;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public void setUpdateTime(Date updateTime2) {
        this.updateTime = updateTime2;
    }

    public String toString() {
        return "OnlCgreportItem(id=" + getId() + ", cgrheadId=" + getCgrheadId() + ", fieldName=" + getFieldName() + ", fieldTxt=" + getFieldTxt() + ", fieldWidth=" + getFieldWidth() + ", fieldType=" + getFieldType() + ", searchMode=" + getSearchMode() + ", isOrder=" + getIsOrder() + ", isSearch=" + getIsSearch() + ", dictCode=" + getDictCode() + ", fieldHref=" + getFieldHref() + ", isShow=" + getIsShow() + ", orderNum=" + getOrderNum() + ", replaceVal=" + getReplaceVal() + ", isTotal=" + getIsTotal() + ", createBy=" + getCreateBy() + ", createTime=" + getCreateTime() + ", updateBy=" + getUpdateBy() + ", updateTime=" + getUpdateTime() + ", groupTitle=" + getGroupTitle() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getCgrheadId() {
        return this.cgrheadId;
    }

    public String getFieldName() {
        return this.fieldName;
    }

    public String getFieldTxt() {
        return this.fieldTxt;
    }

    public Integer getFieldWidth() {
        return this.fieldWidth;
    }

    public String getFieldType() {
        return this.fieldType;
    }

    public String getSearchMode() {
        return this.searchMode;
    }

    public Integer getIsOrder() {
        return this.isOrder;
    }

    public Integer getIsSearch() {
        return this.isSearch;
    }

    public String getDictCode() {
        return this.dictCode;
    }

    public String getFieldHref() {
        return this.fieldHref;
    }

    public Integer getIsShow() {
        return this.isShow;
    }

    public Integer getOrderNum() {
        return this.orderNum;
    }

    public String getReplaceVal() {
        return this.replaceVal;
    }

    public String getIsTotal() {
        return this.isTotal;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public String getUpdateBy() {
        return this.updateBy;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public String getGroupTitle() {
        return this.groupTitle;
    }
}
